import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import '../pages/unknown/unknown.dart';
import '../pages/dashboard/dashboard.dart';
import '../pages/login/login.dart';
import '../pages/user/user.dart';
import '../pages/settings/settings.dart';
import '../pages/olympic/olympic.dart';

// import '../pages/splash/Splash.dart';

// 空页面
var unknownHandler = new Handler(
  handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
    return Unknown();
  }
);

// 默认页
var indexHandler = new Handler(
  handlerFunc: (BuildContext? context, Map<String, List<Object>> params) {
    return Dashboard();
  }
);

// 登录页
var loginHandler = new Handler(
  handlerFunc: (BuildContext? context, Map<String, List<Object>> params) {
    return Login();
  }
);

// 设置页
var settingsHandler = new Handler(
  handlerFunc: (BuildContext? context, Map<String, List<Object>> params) {
    return Settings();
  }
);

// 奥运奖牌榜页
var olympicHandler = new Handler(
  handlerFunc: (BuildContext? context, Map<String, List<Object>> params) {
    return Olympic();
  }
);